<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
	<head>
		<title>套打测试</title>
		<script type="text/javascript" src="word.js?t=<%=System.currentTimeMillis()%>"></script>
		<script type="text/javascript">
  function update()
{
    var datas = 
    {
        txtyear:2009,
        txtmonth:12,
        txtday:30,
        txtno:'22222222222',
        txtcompany: '报表公司首都师大',
        txttype:'外币',
        txtclass:'硬币',
        txtversion:'新版',
        txtcode:'US12345677',
        txtid:'110232405344343311',
        txtnumber:'1200000',
        txtsum: '1200000',
        txtway:'自己印刷1212',
        txtcompany2:'鉴定公司1212',
        txtdate2:'2009年2月12日',
        txtno2:'CN2139889444'
        
    };
    
    updateForm(datas);
}

        </script>


	</head>

	<body>
		<input type="button" value="生成报表" name="save" onclick="update()">
		<input type="button" value="切换书签" name="save" onclick="showbookmark()">
		<input type="button" value="导出报表" name="export" class="BUTTON" onclick="output()">
		<input type="button" value="打印报表" name="print" class="BUTTON" onclick="print()">
		<input type="button" value="套打报表" name="print2" class="BUTTON" onclick="print2()">
		<input type="button" value="打印预览" name="preview" class="BUTTON" onclick="preview()">
		<input type="button" value=" 关  闭 " name="wclose" class="BUTTON" onclick="window.close();">

		<object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57" CODEBASE="dsoframer.cab#version=2,0,0,0" id="oframe" width="100%" height="100%">
			<PARAM NAME="_ExtentX" VALUE="23283">
			<PARAM NAME="_ExtentX" VALUE="23283">
			<PARAM NAME="_ExtentY" VALUE="13891">
			<PARAM NAME="BorderColor" VALUE="-2147483632">
			<PARAM NAME="BackColor" VALUE="-2147483643">
			<PARAM NAME="ForeColor" VALUE="-2147483640">
			<PARAM NAME="TitlebarColor" VALUE="-2147483635">
			<PARAM NAME="TitlebarTextColor" VALUE="-2147483634">
			<PARAM NAME="BorderStyle" VALUE="1">
			<PARAM NAME="Titlebar" VALUE="0">
			<PARAM NAME="Toolbars" VALUE="0">
			<PARAM NAME="Menubar" VALUE="0">
		</OBJECT>
	</body>
	<script type="text/javascript">
	  
	   var htmlpath = window.location.href;
	   var dirpath = htmlpath;
	   if(htmlpath.substring(0,8) == "file:///") dirpath = dirpath.substring(8);
	   dirpath  = dirpath.substring(0,dirpath.lastIndexOf("/"));
	   dirpath = dirpath.split("/").join("\\");

	   var tmfile = "D:\\java\\workspace\\jdt\\web\\test\\word\\test1.doc"; //下载模板
	  
	  window.setTimeout('openfile(tmfile);',500); //创建报表
	  
  </script>
</html>

